﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EyFramework.Task.Entity
{
    public class ReturnData
    {
        /// <summary>
        /// 成功失败
        /// </summary>
        public bool Success { set; get; }

        /// <summary>
        /// 需要发送的消息
        /// </summary>
        public string Message { set; get; }

        public ReturnData Fail(string message)
        {
            Success = false;
            Message = message;
            return this;
        }
    }
}